//
//  WKDetailViewController.m
//  WKDemo
//
//  Created by wangzhaohui-Mac on 14-8-5.
//  Copyright (c) 2014年 com.app. All rights reserved.
//

#import "WKDetailViewController.h"
#import "WKStatusFrame.h"
#import "WKOneViewCell.h"

@interface WKDetailViewController ()

@end

@implementation WKDetailViewController

- (id)initWithStyle:(UITableViewStyle)style
{
    self = [super initWithStyle:style];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    
    
    self.title = @"评论";
    //取消cell的分割线
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.tableView.backgroundColor = WKColor(211, 211, 211);
    
}

#pragma mark - Table view data source
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    WKOneViewCell *cell = [WKOneViewCell cellWithTableView:tableView];
    cell.statusFrame = self.statusFrame;
        
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return self.statusFrame.cellHeigth;
   
}

@end
